<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="${pageContext.request.contextPath }/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>修改秀场</title>
</head>
<body>
<body onload="uploadSingleImg('${pageContext.request.contextPath }/upload/upload')">
<div class="pd-20">
	<form action="" method="post" class="form form-horizontal" id="update_Show_Form">
		<input type="hidden" name="id" value="${ss.id }" id="id">
		<div class="row cl">
           <label class="form-label col-2"><span class="c-red">*</span>中文名称：</label>
           <div class="formControls col-3">
           		<input type="text" class="input-text" value="${ss.name }" placeholder="请输入中文名称" id="name" name="name" maxlength="10" datatype="*" nullmsg="中文名称不能为空">
           </div>
       </div>
       <div class="row cl">
           <label class="form-label col-2"><span class="c-red">*</span>英文名称：</label>
           <div class="formControls col-3">
           		<input type="text" class="input-text" value="${ss.enName }" placeholder="请输入英文名称" id="enName" name="enName" maxlength="20" datatype="*" nullmsg="英文名称不能为空">
           </div>
       </div>
       <div class="row cl">
       	   <label class="form-label col-2"><span class="c-red">*</span>地区：</label>
           <div class="formControls col-3">
           		<span class="select-box" style="width:150px;">
		            <select id="parentId" name="parentId" class="select" datatype="*">
		       			<option value="">请选择</option>
		       			<c:forEach items="${pList }" var="list">
	       					<option value="${list.id }" <c:if test="${list.id==ss.parentId }">selected="selected"</c:if>>${list.name }</option>
		           		</c:forEach>
					</select>
				</span>
           </div>
       </div>
       <div class="row cl">
       	   <label class="form-label col-2"><span class="c-red">*</span>是否热门：</label>
           <div class="formControls col-3">
           		<span class="select-box" style="width:150px;">
		            <select id="hot" name="hot" class="select" datatype="*">
		       			<option value="">请选择</option>
       					<option value="0" <c:if test="${ss.hot==0 }">selected="selected"</c:if>>否</option>
       					<option value="1" <c:if test="${ss.hot==1 }">selected="selected"</c:if>>是</option>
					</select>
				</span>
           </div>
       </div>
       <div class="row cl">
       		<label class="form-label col-2"></label>
	       <div id="listAll" class="formControls col-10">
	      		<img class="jqthumb" alt="" src="${pageContext.request.contextPath }/upload/${ss.img}">
	       </div>
       </div>
       <div class="row cl">
	       <label class="form-label col-2"><span class="c-red">*</span>展示图片：</label>
	       <input type="hidden" id="returnImg" name="img" value="${ss.img }">
	       <div class="formControls col-3">  
		      <div class="uploader-thum-container">    
			      <div id="fileList" class="uploader-list"></div>
			      <div id="filePicker">选择图片</div>
		      </div>
	       </div>
       </div>
       <div class="row cl">
	       <label class="form-label col-2"><span class="c-red"></span>多图展示：</label>
	       <div id="listAll" class="formControls col-10">
		       <c:forEach items="${picList}" var="listOne">
		      		<img class="jqthumb" alt="" src="${pageContext.request.contextPath }/upload/${listOne.img}">
		       </c:forEach>
	       </div>
       </div>
       <div class="row cl">
    	<label class="form-label col-2"><span class="c-red"></span>多图上传：</label>
    	<div class="formControls col-10">
    		<input type="hidden" id="returnImgArray" name="returnImgArray" value="${returnImgArray }">
    		<div class="uploader-list-container">
		    	<div class="queueList">
			    	<div id="dndArea" class="placeholder">
						<div id="filePicker-2"></div>
						<p>或将照片拖到这里，单次最多可选300张</p>
					</div>
				</div>
				<div class="statusBar" style="display:none;">
					<div class="progress"> 
						<span class="text">0%</span> 
						<span class="percentage"></span> 
					</div>
					<div class="info"></div>
					<div class="btns">
						<div id="filePicker2"></div>
						<div class="uploadBtn">开始上传</div>
					</div>
				</div>
			</div>
		</div>
    </div>
       <div class="row cl">
       	 <div class="col-9 col-offset-3">
	         <a class="btn btn-primary save"  onclick="operationdataValidate('../show/update','#update_Show_Form')">保存</a>
	         <a class="btn btn-primary" onclick="closethis()">取消</a>
         </div>
       </div>
	</form>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/js/H-ui.admin.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/webuploader/0.1.5/webuploader.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/uploadSingleImg.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/uploadImg.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/jqthumb/jqthumb.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/tableBtnGroup.js"></script>
<script type="text/javascript">
$(function(){
	var serviceUrl='${pageContext.request.contextPath }/upload/upload';
	uploadImg(serviceUrl);
});
function closethis(){
	var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
   	parent.layer.close(index);
}
function operationdataValidate(dataUrl,formId){
	var returnImg=$('#returnImg').val();
	if(returnImg==''||returnImg==null){
		alert("请上传图片");
		return false;
	}else{
		operationdata(dataUrl,formId);
	}
}
</script>
</body>
</html>